local jueyun_guoba = fk.CreateSkill {
  name = "cf_jueyun_guoba_skill",
}

Fk:loadTranslationTable {
  ["cf_jueyun_guoba_skill"] = "绝云锅巴",
  ["#cf_jueyun_guoba_skill"] = "本回合杀造成伤害+1并饱腹",
  ["@@cf_jueyun_guoba_skill-turn"] = "绝云锅巴",
}

jueyun_guoba:addEffect("cardskill", {
  prompt = "#cf_jueyun_guoba_skill",
  mod_target_filter = Util.TrueFunc,
  can_use = function(self, player, card, extra_data)
    if Util.CanUseToSelf(self, player, card, extra_data) then
      return player:getMark("@@cf_baofu-turn") == 0
    end
  end,
  on_effect = function(self, room, effect)
    local from = effect.from
    local to = effect.to
    if to.dead then return end
    room:addPlayerMark(to, "@@cf_jueyun_guoba_skill-turn")
    room:addPlayerMark(to, "@@cf_baofu-turn")
    if room:hasSkill("cf_jueyun_guoba_continue_skill") then return end
    room:addSkill("cf_jueyun_guoba_continue_skill")
  end
})

return jueyun_guoba
